<template>
  <van-button
    class="follow-btn"
    round
    size="small"
    v-if="value"
  >已关注
  </van-button>
  <van-button
    v-else
    class="follow-btn"
    type="info"
    color="#3296fa"
    round
    size="small"
    icon="plus"
  >关注
  </van-button>
</template>

<script>
export default {
  name: 'FollowAuthor',
  // 接收父组件传递文章关注信息
  props: {
    value: {
      type: Boolean,
      required: true
    }
  },
  data () {
    return {}
  },
  methods: {}
}
</script>

<style lang="less" scoped>

</style>
